package cevent.source.cloudcenter.server.dto;


import java.util.List;

/**
 * @author cevent
 * @description 城市地区 模块传输层
 */
public class AddressDto {
        //id
        private Integer id;
        //区域名称
        private String areaname;
        //父级id，0为一级
        private Integer parentid;
        //层级
        private Integer level;
        //子分类集合
        private List<AddressDto> children;

        public Integer getId(){
            return  id;
        }
        public void setId(Integer id){
            this.id=id;
        }
        public String getAreaname(){
            return  areaname;
        }
        public void setAreaname(String areaname){
            this.areaname=areaname;
        }
        public Integer getParentid(){
            return  parentid;
        }
        public void setParentid(Integer parentid){
            this.parentid=parentid;
        }
        public Integer getLevel(){
            return  level;
        }
        public void setLevel(Integer level){
            this.level=level;
        }

    public List<AddressDto> getChildren() {
        return children;
    }

    public void setChildren(List<AddressDto> children) {
        this.children = children;
    }

    @Override
    public String toString() {
        final StringBuffer sb = new StringBuffer("AddressDto{");
        sb.append("id=").append(id);
        sb.append(", areaname='").append(areaname).append('\'');
        sb.append(", parentid=").append(parentid);
        sb.append(", level=").append(level);
        sb.append(", children=").append(children);
        sb.append('}');
        return sb.toString();
    }
}
